/*
 * @Author: 13177709051 3506463075@qq.com
 * @Date: 2024-12-04 11:13:24
 * @LastEditors: 13177709051 3506463075@qq.com
 * @LastEditTime: 2024-12-05 20:29:23
 * @FilePath: /highly-concurrent-server/test/tcp_client.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include "../source/server.hpp"

int main()
{
    Socket cli_sock;
    cli_sock.CreateClient(8080, "127.0.0.1");
    for (int i = 0; i < 5; i++) {
        std::string str = "hello bitejiuyeke!";
        cli_sock.Send(str.c_str(), str.size());
        char buf[1024] = {0};
        cli_sock.Recv(buf, 1023);
        DBG_LOG("%s", buf);
        sleep(1);
    }
    while(1) sleep(1);
    return 0;
}